package task9;

public class Hisense  extends TV{
    boolean d3;
    Hisense(){}
    Hisense(String brand,byte size,boolean d3){
        this.d3=d3;
        this.brand=brand;
        this.size=size;
    }
    @Override
    void output(){
        if(d3==true){
            System.out.println("电视机牌子:"+brand+",尺寸"+size+",是3D电视");
        }else {
           super.output();
        }
    }
}
